import request from '@/utils/request'

// 查询发票采集列表
export function listCollect(query) {
  return request({
    url: '/doc/collect/list',
    method: 'get',
    params: query
  })
}

// 查询发票采集详细
export function getCollect(id) {
  return request({
    url: '/doc/collect/' + id,
    method: 'get'
  })
}

// 新增发票采集
export function addCollect(data) {
  return request({
    url: '/doc/collect',
    method: 'post',
    data: data
  })
}

// 修改发票采集
export function updateCollect(data) {
  return request({
    url: '/doc/collect',
    method: 'put',
    data: data
  })
}

// 删除发票采集
export function delCollect(id) {
  return request({
    url: '/doc/collect/' + id,
    method: 'delete'
  })
}

export function uploadRecogcollectImg(folderId, data) {
  return request({
    url: '/doc/collect/'+folderId+'/importImg',
    method: 'post',
    data: data
  })
}
